package chapter20.homework3;

public class Maket implements Department{
    private  Mediator mediator;
    public Maket(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("Maket", this);
    }

    @Override
    public void selfaction() {
        // TODO 自动生成的方法存根
        System.out.print("跑去接项目");
    }

    @Override
    public void outaction() {
        // TODO 自动生成的方法存根
        System.out.println("没钱了，没钱吃饭了");
        mediator.command("Finance");
    }
}
